package com.ruibang.glass.portal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Author: songJinKang
 * @CreateTime: 2023-11-15  18:41
 * @Description: TODO:厂房实体
 * @Version: 1.0
 */
@Data
@ApiModel
@TableName("g_produce_workshop")
public class Workshop extends BaseEntity implements Serializable {

    @ApiModelProperty("厂房id")
    @TableId(value = "workshop_id", type = IdType.ASSIGN_ID)
    private String workshopId;

    @ApiModelProperty("厂房名称")
    @NotBlank(message = "厂房名不可为空！")
    private String workshopName;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty("排序")
    private Integer sort;
}
